﻿-- =============================================
-- Script Template
-- =============================================

use KWR
go

delete from dbo.transformations
delete from dbo.KwrNames
go


declare @id int

insert into dbo.KwrNames values ('Trójkąt Sierpińskiego I')

set @id = SCOPE_IDENTITY()

insert into dbo.transformations values
(@id, 0.5, 0.0, 0.0, 0.5, 0.0, 0.0),
(@id, 0.5, 0.0, 0.0, 0.5, 0.5, 0.0),
(@id, 0.5, 0.0, 0.0, 0.5, 0.25, 0.5)
go

declare @id int

insert into dbo.KwrNames values ('Trójkąt Sierpińskiego II')

set @id = SCOPE_IDENTITY()

insert into dbo.transformations values
(@id, 0.5, 0.0, 0.0, 0.5, 0.0, 0.0),
(@id, 0.5, 0.0, 0.0, 0.5, 0.5, 0.0),
(@id, 0.5, 0.0, 0.0, 0.5, 0.0, 0.5)
go

declare @id int

insert into dbo.KwrNames values ('Trójkąt Sierpińskiego III')

set @id = SCOPE_IDENTITY()

insert into dbo.transformations values
(@id, 0.4, 0.0, 0.0, 0.4, 0.0, 0.0),
(@id, 0.4, 0.0, 0.0, 0.4, 0.5, 0.0),
(@id, 0.4, 0.0, 0.0, 0.4, 0.25, 0.5)
go

declare @id int

insert into dbo.KwrNames values ('Trójkąt Sierpińskiego IV')

set @id = SCOPE_IDENTITY()

insert into dbo.transformations values
(@id, 0.55, 0.0, 0.0, 0.55, 0.0, 0.0),
(@id, 0.55, 0.0, 0.0, 0.55, 0.45, 0.0),
(@id, 0.55, 0.0, 0.0, 0.55, 0.225, 0.45)
go